<?php
declare(strict_types=1);
namespace cms\sms\api_controller;

use cms\sms\service\VerificationCodeService;
use Hyperf\HttpServer\Annotation\AutoController;
use HyperfExt\Sms\Sms;

/**
 * Class TestController
 * @package cms\sms\api_controller
 * @AutoController(prefix="api/sms/test")
 */
class TestController extends CommonController
{
    public function t001()
    {
        $a = Sms::sender('baidu_cloud_v3')->to('1898047xxxx', '86')->send(new VerificationCodeService());
        var_dump($a);
        return 'ok';
    }
}